package com.yuan.blog;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import javax.sql.DataSource;
import java.util.Arrays;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableFeignClients(basePackages = {"com.yuan.blog"})
public class BlogFeignApplication {

    public static void main(String[] args) {
        //防止springboot的logback与nacos的logback冲突禁用nacos的logback
        System.setProperty("nacos.logging.default.config.enabled","false");

       SpringApplication.run(BlogFeignApplication.class, args);
    }

}
